---
title: "Get Missed Chats"
api: "GET https://api-v2.opencopilot.so/backend/reports/{orgId}/chats/missed"
description: "Retrieve the count of missed chats based on specified criteria"
---

## Authentication

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication
</ParamField>

### Path Parameters

<ParamField path="orgId" type="string" required>
  The ID of the organization to filter chats
</ParamField>

### Query Parameters

<ParamField query="startDate" type="string" format="date-time">
  The start date for the date range filter (ISO 8601 format)
</ParamField>

<ParamField query="endDate" type="string" format="date-time">
  The end date for the date range filter (ISO 8601 format)
</ParamField>

### Response

<ResponseField name="count" type="number">
  The number of missed chats based on the specified criteria
</ResponseField>

<RequestExample>

```bash Example Request
curl --location --request GET 'https://api-v2.opencopilot.so/backend/reports/chats/missed?startDate=2023-01-01T00:00:00Z&endDate=2023-12-31T23:59:59Z' \
--header 'Authorization: Bearer YOUR_TOKEN'
```

</RequestExample>

<ResponseExample>

```json Response
{
  "count": 42
}
```

</ResponseExample>

### When is a chat considered missed?

A chat is considered missed when:

1. AI Autopilot OFF:
   - A user initiates a chat
   - No human agent responds within a set time frame
   - The chat is automatically closed as unresolved

2. AI Autopilot ON:
   - A user initiates a chat
   - The AI attempts to handle the query but fails to resolve it
   - No human agent intervenes to assist
   - The chat is automatically closed as unresolved

In both cases, the key factors are:
- The chat session is closed
- The issue remains unresolved
- There is no last message, indicating no successful interaction